package com.cn.jinl.dao;

import com.cn.jinl.domain.Login;
import com.cn.jinl.domain.LoginExample;
import com.cn.jinl.utils.QueryForm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LoginMapper {
    int countByExample(LoginExample example);

    int deleteByExample(LoginExample example);

    int deleteByPrimaryKey(String id);

    int insert(Login record);

    int insertSelective(Login record);

    List<Login> selectByExample(LoginExample example);

    List<Login> selectUserList(QueryForm queryForm);

    List<Login> selectUserByPhoneOrUserName(String user);

    List<Login> selectUserInfoByPhone(String phone);

    List<Login> selectUsersWithDept();

    Login selectByPrimaryKey(String id);

    Login selectByUserAccount(String userAccount);

    Login selectUserById(String userAccount);
    List<Login> selectNormalUsers();
    List<Login> selectUsersWithRole();

    int updateByExampleSelective(@Param("record") Login record, @Param("example") LoginExample example);

    int updateByExample(@Param("record") Login record, @Param("example") LoginExample example);

    int updateByPrimaryKeySelective(Login record);

    int updateByPrimaryKey(Login record);

    int updateLoginErrorCount(String userAccount);

    int selectFirstPageUserCount();

    List<Login> getNameList(String queryString);

    List<Login> getRepairPersonList();
}
